package com.intelligent.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 客户对账单表
 * @TableName customer_reconciliation
 */
@TableName(value ="customer_reconciliation")
@Data
public class CustomerReconciliation implements Serializable {
    /**
     * 对账单ID
     */
    @TableId(type = IdType.AUTO)
    private Long recoId;

    /**
     * 对账单号
     */
    private String recoCode;

    /**
     * 客户Id
     */
    private Long customerId;

    /**
     * 对账状态（0：待对账；1：部分对账；2：全部对账 ）
     */
    private Integer status;

    /**
     * 账单起始日期
     */
    private Date createDate;

    /**
     * 账单终止日期
     */
    private Date endDate;

    /**
     * 应收款
     */
    private BigDecimal currentReceivable;

    /**
     * 代收款
     */
    private BigDecimal currentToReceive;

    /**
     * 已收款
     */
    private BigDecimal currentReceived;

    /**
     * 财务人员
     */
    private String financialStaff;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}